package com.sms.web.domain.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.sms.domain.entity.Template;

/**
 * @desc 
 * @author wjw
 * @time 2017年11月16日下午3:32:57
 */
public interface TemplateDao extends JpaRepository<Template, String>, JpaSpecificationExecutor<Template> {
    
	
	@Query("from Template t where  application.appId=?1 and code=?2 ")
	public Template findByAppAndCode(String appId, String templateCode);
}
